﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CPPProject.CPP.Dto
{
    [AutoMapTo(typeof(CPPAttachment))]
    public class UpdateCPPAttachmentDto : EntityDto<Guid>
    {
        [Required]
        [MaxLength(50)]
        public string FileName { get; set; }
        /// <summary>
        /// 文件二进制字节流
        /// </summary>
        public byte[] FileData { get; set; }
        /// <summary>
        /// 文件扩展名
        /// </summary>
        [Required]
        [MaxLength(10)]
        public string FileExtension { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public decimal FileSize { get; set; }
        /// <summary>
        /// 对象名
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ObjectName { get; set; }
        /// <summary>
        /// 对象ID
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ObjectId { get; set; }
        [MaxLength(50)]
        public string ObjectField { get; set; }
    }
}
